<?php require_once(dirname(__FILE__) . '/inc/config.inc.php');
IsModelPriv('goodsorder'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>修改管理员</title>
    <link href="templates/style/admin.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="templates/js/jquery.min.js"></script>
    <script type="text/javascript" src="templates/js/checkf.func.js"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="ui/css/bootstrap.min.css">
    <link rel="stylesheet" href="ui/css/bootstrap-theme.min.css">
    <script src="ui/js/bootstrap.min.js"></script>
    <style>.form-control { display: inline-block !important;}</style>
</head>
<body>
<?php
$row = $dosql->GetOne("SELECT * FROM `#@__crm` WHERE `id`=$id");
?>
<div class="formHeader"><span class="title">修改客户信息</span> <a href="javascript:location.reload();" class="reload">刷新</a>
</div>
<form name="form" id="form" method="post" action="crm_save.php" onsubmit="return cfm_upadmin();">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
        <tr>
            <td width="25%" height="40" align="right">单位：</td>
            <td width="75%">
                <input type="text" name="school" class="form-control w300" id="school" value="<?php echo $row['school'] ?>"/>
                <span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
        </tr>

        <tr>
            <td height="40" align="right">联系人：</td>
            <td>
                <input type="text" name="truename" class="form-control w300" id="truename" value="<?php echo $row['truename'] ?>"/>
            </td>
        </tr>
        <tr>
            <td height="40" align="right">电话：</td>
            <td>
                <input type="text" name="mobile" class="form-control w300" id="mobile" value="<?php echo $row['mobile'] ?>"/>
                <span class="maroon">&nbsp;</span></td>
        </tr>
        <tr>
            <td height="40" align="right">地址：</td>
            <td>
                <input type="text" name="address" class="form-control w300" id="address" value="<?php echo $row['address'] ?>"/>
                <span class="maroon">&nbsp;</span></td>
        </tr>
        <tr>
            <td height="40" align="right">是否可以完整工单日志：</td>
            <td><input type="radio" name="fulllog" value="1"  <?php if ($row['fulllog'] == '1') echo 'checked="checked"'; ?> />
                是&nbsp;
                <input type="radio" name="fulllog" value="0"  <?php if ($row['fulllog'] == '0') echo 'checked="checked"'; ?>/>
                否
            </td>
        </tr>
        <tr>
            <td height="40" align="right">用户UID：</td>
            <td><input type="text" name="uid" class="form-control w300" id="uid" value="<?php echo $row['uid'] ?>"/>
                <span class="maroon">用户在微信报修平台的UID</span></td>
        </tr>
        <tr>
            <td height="40" align="right"></td>
            <td colspan="2" height="26">GPS坐标：<a target="_blank" href="https://lbs.qq.com/tool/getpoint/">点击这里获取坐标</a>
            </td>
        </tr>
        <tr>
            <td height="40" align="right">位置坐标：</td>
            <td>
                <input class="form-control w200" type="text" name="gps" id="gps" value="<?php echo $row['gps'] ?>"><span class="label label-success"> 通过GPS坐标计算 客户和签到地点的距离</span>
            </td>
        </tr>
        <tr>
            <td height="40" align="right">审　核：</td>
            <td>
                <input type="radio" name="checkinfo" value="true" <?php if ($row['checkinfo'] == 'true') echo 'checked="checked"'; ?> />
                已审核&nbsp;
                <input type="radio" name="checkinfo" value="false" <?php if ($row['checkinfo'] == 'false') echo 'checked="checked"'; ?> />
                未审核
            </td>
        </tr>
    </table>
    <div class="formSubBtn">
        <input type="submit" class="submit" value="提交"/>
        <input type="button" class="back" value="返回" onclick="history.go(-1)"/>
        <input type="hidden" name="action" id="action" value="update"/>
        <input type="hidden" name="id" id="id" value="<?php echo $id; ?>"/>
    </div>
</form>
</body>
</html>